using System.ComponentModel.DataAnnotations;

namespace Basket.Api.Features.Baskets.Upsert;

public sealed class UpsertBasketItemRequest
{
    [Required]
    public Guid ProductId { get; set; }

    [Required]
    [MaxLength(256)]
    public string ProductName { get; set; } = string.Empty;

    [Range(0, double.MaxValue)]
    public decimal UnitPrice { get; set; }

    [Range(1, int.MaxValue)]
    public int Quantity { get; set; }
}
